package com.waves;

import com.waves.task.controller.TaskController;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ConfigurableApplicationContext;

import java.util.Arrays;

/**
 * @author dlw
 */
@EnableDiscoveryClient
@SpringBootApplication
@MapperScan("${mybatis-plus.mapperPackage}")
public class DemandApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(DemandApplication.class, args);
        System.out.println("需求模块启动 ヾ(￣ー￣)X(^▽^)ゞ");

        // 查询 AService1 的beanDefinition
//        Arrays.stream(run.getBeanDefinitionNames()).forEach(i -> {
//            String description = run.getBeanFactory().getBeanDefinition(i).getResourceDescription();
//            if ("AService1".equals(i)) {
//                System.out.println("name: " + i + "; BeanDefinition来源: " + description);
//            }
//        });
//        run.close();
    }
}

